package com.wulijie.intermediary;

/**
 * @Author cui
 * @Data
 */
public class TV1 extends Colleague {

    public TV1(Mediary mediary, String name) {
        super(mediary, name);
        mediary.register(name, this);
    }

    @Override
    void sendMessage(String name, int state) {
        this.getMediary().getMessage(name, state);
    }

    public void m1() {
        System.out.println("tv1 m1");
    }

    public void m2() {
        System.out.println("tv1 m2");
    }
}
